package com.lucenly.spell.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import com.lucenly.spell.adapter.HomeItemAdapter
import com.lucenly.spell.base.BaseActivity
import com.lucenly.spell.databinding.ActivityZeroSpellBinding

class ZeroSpellActivity : BaseActivity<ActivityZeroSpellBinding>() {
    override fun getViewBinding(): ActivityZeroSpellBinding {
        return ActivityZeroSpellBinding.inflate(layoutInflater,baseBinding.root,true)
    }

    override fun setTitle(): String {
        return "0元体验"
    }

    override fun initData() {
        var list = arrayListOf<Int>()
        for (i in 1..10){
            list.add(i)
        }
//        binding.content.setBackgroundColor(color)
        binding.recyclerView.layoutManager = LinearLayoutManager(context)
        binding.recyclerView.adapter = HomeItemAdapter(list,context!!)
    }

    override fun initEvent() {
    }

    override fun startObserve() {
    }
}